<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        <div v-if="login">
            <label>请用手机号进行登录</label>
            <input type="text">
        </div>
        <div v-else>
            <label>请用邮箱进行登录</label>
            <input type="text">
        </div>
        <div v-show="login1">
            <label>请用邮箱进行登录v-show</label>
            <input type="text">
        </div>
        <button v-on:click="login=!login">更换登录方式</button>
        <button v-on:click="login1=!login1">更换登录方式1</button>

        <div v-if="type=='A'">这里是A区域</div>
        <div v-else-if="type=='B'">这里是B区域</div>
        <div v-else>这是C语句</div>
    </div>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                login:true,
                login1:true,
                type:'A'
            },
            methods: {}
        })
    </script>
</body>

</html>